﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:DataList ID="DataList1" runat="server" CellPadding="5" OnItemDataBound="DataList1_ItemDataBound"
        RepeatColumns="2" Width="100%">
        <ItemTemplate>
            <table border="0" cellpadding="5" cellspacing="0" width="100%">
                <tr>
                    <th align="left" bgcolor="#ffff00">
                        <table border="0" cellspacing="0">
                            <tr>
                                <td>
                                    <asp:Image ID="Image2" runat="server" Height="24px" ImageUrl='<%# Eval("Image", "Images/{0}") %>'
                                        Width="24px" />&nbsp;</td>
                                <td>
                                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("CategoryID", "Products.aspx?CategoryID={0}") %>'
                                        Text='<%# Eval("CategoryName") %>'></asp:HyperLink></td>
                            </tr>
                        </table>
                    </th>
                </tr>
                <tr>
                    <td valign="top">
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="5"
                            GridLines="None" ShowHeader="False">
                            <Columns>
                                <asp:TemplateField>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Image ID="Image1" runat="server" Height="16px" ImageUrl='<%# Eval("Image", "Images/{0}") %>'
                                            Width="16px" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:HyperLinkField DataNavigateUrlFields="ProductID" DataNavigateUrlFormatString="ProductDetail.aspx?ProductID={0}"
                                    DataTextField="ProductName" />
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
        <ItemStyle VerticalAlign="Top" />
    </asp:DataList>
</asp:Content>

